Skip to content

Instantly share code, notes, and snippets.

@0x4C4A
0x4C4A / epsonProjectorOnOff.py
Created August 31, 2017 19:34
Python script to turn an Epson projector on or off via it's network cgi interface
#!/usr/bin/python3
import requests
import re
import time
import sys
projectorAddress = 'http://192.168.1.87'
username = 'EPSONWEB'
password = 'admin'
@rosszurowski
rosszurowski / subscribe.md
Last active March 5, 2026 23:21
How to subscribe to the Small Seasons calendar via iCal.

Small Seasons via iCal

If you'd like to follow along with the small seasons calendar via iCal, you'll want to create a new calendar subscription. On Mac, you can do this by going to File > New Calendar Subscription…

Into the panel that opens, paste the following URL:

https://calendar.google.com/calendar/ical/4eu29iflrjlhahh3kusp454n2c%40group.calendar.google.com/private-3f3d86651493934f026c4aca11baaf02/basic.ics
@OmerFarukOruc
OmerFarukOruc / claude.md
Last active March 5, 2026 23:10
AI Agent Workflow Orchestration Guidelines

AI Coding Agent Guidelines (claude.md)

These rules define how an AI coding agent should plan, execute, verify, communicate, and recover when working in a real codebase. Optimize for correctness, minimalism, and developer experience.


Operating Principles (Non-Negotiable)

  • Correctness over cleverness: Prefer boring, readable solutions that are easy to maintain.
  • Smallest change that works: Minimize blast radius; don't refactor adjacent code unless it meaningfully reduces risk or complexity.
@mberman84
mberman84 / all_files.md
Created February 24, 2026 21:09
Matt's Markdown Files

OpenClaw: System Prompt File Templates

Generalized versions of all root .md files used by OpenClaw. These files are loaded into the agent's system prompt on every request (except MEMORY.md which is conditional).

Copy these as starting points and customize for your own setup. Replace <placeholders> with your values.


AGENTS.md

@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@Resinchem
Resinchem / custom_panel.yaml
Created February 23, 2026 11:51
Add Developer Tools back to Home Assistant Side Bar
# Add DevTools back to Sidebar
panel_custom:
- name: panel_develop
sidebar_title: Developer Tools
sidebar_icon: mdi:hammer
url_path: 'config/developer-tools'
module_url: /api/hassio/app/entrypoint.js
embed_iframe: true
require_admin: true
@eonist
eonist / Comprehensive-Figma-Auto-Layout-guide.md
Created April 30, 2025 11:59
Comprehensive Guide to Figma Auto Layout: From Basics to Advanced Implementation

Comprehensive Guide to Figma Auto Layout: From Basics to Advanced Implementation

Before diving into the detailed points, here's a summary of the key insights: Figma's Auto Layout is a powerful feature that transforms static designs into responsive, adaptable layouts. This guide explores ten critical aspects of Auto Layout, covering everything from basic setups and nested structures to advanced techniques like absolute positioning and mixed layout strategies. You'll learn how to build responsive components, customize padding and spacing, and implement real-world UI elements that automatically adjust to content changes.

Basic Auto Layout Fundamentals

Auto Layout in Figma transforms static designs into dynamic, responsive layouts that automatically adjust to content changes. This fundamental feature serves as the foundation for creating flexible and maintainable user interfaces.

Auto Layout works by applying a set of rules to frames that determine how child elements behave when content changes. These ru

@ericelliott
ericelliott / manifest.json
Created November 8, 2016 00:35
Sample manifest.json
{
"name": "My Progressive Web Application",
"short_name": "Progressive",
"start_url": "/?home=true",
"icons": [
{
"src": "/icons/icon36.png",
"sizes": "36x36",
"type": "image/png"
},
@devinschumacher
devinschumacher / how-to-git-dry-run.md
Last active March 5, 2026 22:48
How to do a "dry run" of a git merge to see what would happen without actually committing to it
title tags
How to do a "dry run" of a git merge to see what would happen without actually committing to it.
git
github
git merge
git diff

How to do a "dry run" of a git merge to see what would happen without actually committing to it.

Example: You have a local project, and you're on the local branch called dev. You haven't started working yet, but there may have been other activity since you originally cloned the remote dev branch, and you want to see how your branch compares to the remote dev branch so you can get in sync before starting to code - but you don't want to just git pull and risk conflicts, or losing info.

@thebream
thebream / !Remediation script for e1000e network driver hang on Proxmox VE.md
Last active March 5, 2026 22:46
Remediation script for e1000e network driver hang on Proxmox VE

Check recent system journal entries for "hang detected" message(s), and if found then reset network interface.

Workaround until driver / kernel fixed.

TLDR; Quick start

  1. Copy attached script to somewhere, e.g. /root/cron/hangcheck2.sh
  2. If your interface name is not eno1 then update the ifup and ifdown commands
  3. Review code for your peace of mind (after all, this script is going to be running as root!)
  4. Give it a test run: